package org.jeecg.common.enums;

public enum ResponseStatusEnum {

    SUCCESS(200,"成功"),
    UNAUTHORIZED_MSG(203,"未授权信息"),
    BAD_REQUEST(400,"错误的请求"),
    UNAUTHORIZED_REQ(401,"未授权请求"),
    REFUSE_REQUEST(403,"服务器拒绝请求"),
    NOT_FOUND(404,"资源未找到"),
    NO_REQUEST(405,"该方法禁止请求"),
    UNUSE(406,"请求内容无法使用"),
    TIMEOUT(408,"请求超时"),
    URLOVERLEN(414,"请求的URL过长"),
    UNSUPPORT_MIME(415,"不支持的MIME类型"),
    SERVER_ERROR(500,"服务器内部错误"),
    GATEWAY_ERROR(502,"网关错误"),
    NOT_AVAILABLE(503,"资源不可用"),
    GATEWAY_TIMEOUT(504,"网关超时"),
    UNSUPPORT_PROTOCOL(505,"协议版本不受支持");


    private int value;

    private String msg;

    ResponseStatusEnum(int value, String msg){
        this.value = value;
        this.msg = msg;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
